In the following slides I will try to evaluate what kind relationship that best fits the association between weight and miles pr. gallon in the mtcars dataset.
I will fit three univariate linear regression models with the miles pr. gallon as the response and the weight, weight squared and log weight as the predictors
I will then try to evaluate which one gives the best prediction based on a grphical evaluation and based on the